using System;
using UnityEngine;

namespace Main
{
    public class Settings
    {
        public const float ITEM_FADE_DURATION = 0.35f;
        public const float SCENE_TRANSITION_DURATION = 1f;
        public const float treeFadeOutAlpha = 0.45f;
        public const float treeFadeInAlpha = 1f;

        /// <summary>
        /// 游戏秒数除数, 0.1f表示现实1秒 = 游戏10秒
        /// </summary>
        public const float secondThreshold = 0.1f;
        public const int SecondHold = 59;
        public const int MinuteHold = 59;
        public const int HourHold = 23;
        public const int DayHold = 30;
        public const int SeasonHold = 3;

        // 一次最多可以割草的数量
        public const int reapAmount = 2;

        public readonly static Vector3 PlayerStartPos = new Vector3(0, -4, 0);
        public const int PlayerStartMoney = 100;

        #region Const String

        public const string WaterTag = "Water";
        public const string DigTag = "Dig";
        public const string CropParent = "CropParent";
        public const string ItemParent = "ItemParent";

        public const float GridCellSize = 1f;
        public const float GridCellDiagonalSize = 1.4f;
        public const float pixelSize = 0.05f;

        public const float animationBreakTime = 3f;

        public const int maxGridSize = 9999;

        public static TimeSpan morningTime = new TimeSpan(5, 0, 0);
        public static TimeSpan nightTime = new TimeSpan(8, 0, 0);
        public const float lightChangeDuration = 25f;

        #endregion
    }
}

